<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

//分类资源路由
Route::resource('admin/cate', 'admin/Cate');
//标签资源路由
Route::resource('admin/tags', 'admin/Tags');
//文章资源路由
Route::resource('admin/article', 'admin/Article');
//友情链接资源路由
Route::resource('admin/goodlink', 'admin/Goodlink');
//用户管理资源路由
Route::resource('admin/user', 'admin/Users');
//权限管理
Route::resource('admin/authrule', 'admin/Authrule');
//一键添加权限规则
Route::get('admin/authrule/onekeycreate', 'admin/Authrule/onekeycreate');
//保存一键添加权限规则
Route::post('admin/authrule/onekeysave', 'admin/Authrule/onekeysave');
//权限组管理
Route::resource('admin/authgroup', 'admin/Authgroup');


//文章软删除路由定义
Route::rule('admin/article/softdelete/:id', 'admin/Article/softdelete');
//文章回收站
Route::rule('admin/article/huishouzhan', 'admin/Article/huishouzhan');
//文章恢复
Route::rule('admin/article/softback/:id', 'admin/Article/softback');